package com.itheima.mapper;

import com.itheima.pojo.Advice;
import com.itheima.pojo.Exercise;
import com.itheima.pojo.Food;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdviceMapper {
    void add(Advice advice);

    void addFoodId(Map<Integer,Integer> map);

    void addExerciseId(Map<Integer,Integer> map);

    Advice findById(Integer id);

    List<Integer> findFoodById(Integer order_id);

    List<Integer> findExerciseById(Integer order_id);

    void edit(Advice advice);

    void deleteById4Food(Integer id);

    void deleteById4Exercise(Integer adviceId);
}
